package com.cefa.finance.result;

public enum ResultStatus {
    SUCCESS(200, "成功"),
    FAILED(-200, "失败"),
    SIGNFAILED(-400, "签名失败"),
    NOTYETDUE(-201,"本车租赁尚未到期!"),
    NOSUCHUSER(-202,"此用户没有租赁业务!"),
    OUTOFDATE(-203,"合同尚未生效或者融资租赁合同已过期!"),
    ALREADYEXISTED(-204,"用户账号已经存在!"),
    PHONEALREADYEXISTED(-206,"手机号已注册!"),
    NOTEXIST(-205,"私钥不存在！");


    private int code;
    private String message;

    ResultStatus(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
